<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Pausing data collection | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'pause-export.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/pause-export.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/pause-export.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/pause-export.html" rel="nofollow" target="_blank">../en/pause-export.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch Guide [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="monitor-elasticsearch-cluster.html">Monitor a cluster</a></span>
»
<span class="breadcrumb-link"><a href="collecting-monitoring-data.html">Collecting monitoring data using legacy collectors</a></span>
»
<span class="breadcrumb-node">Pausing data collection</span>
</div>
<div class="navheader">
<span class="prev">
<a href="http-exporter.html">« HTTP exporters</a>
</span>
<span class="next">
<a href="monitoring-troubleshooting.html">Troubleshooting monitoring »</a>
</span>
</div>
<div class="section xpack">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="pause-export"></a>Pausing data collection<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/monitoring/pause-export.asciidoc">edit</a><a class="xpack_tag" href="https://www.elastic.co/subscriptions"></a>
</h2>
</div></div></div>
<p>To stop generating X-Pack monitoring data in Elasticsearch, disable data collection:</p>
<div class="pre_wrapper lang-yaml">
<pre class="programlisting prettyprint lang-yaml">xpack.monitoring.collection.enabled: false</pre>
</div>
<p>When this setting is <code class="literal">false</code>, Elasticsearch monitoring data is not collected and all
monitoring data from other sources such as Kibana, Beats, and Logstash is ignored.</p>
<p>You can update this setting by using the
<a href="cluster-update-settings.html" class="ulink" target="_top">Cluster Update Settings API</a>.</p>
<p>If you want to collect data from sources such as Kibana, Beats, and Logstash but
not collect data about your Elasticsearch cluster, you can disable data collection
just for Elasticsearch:</p>
<div class="pre_wrapper lang-yaml">
<pre class="programlisting prettyprint lang-yaml">xpack.monitoring.collection.enabled: true
xpack.monitoring.elasticsearch.collection.enabled: false</pre>
</div>
<p>If you want to separately disable a specific exporter, you can specify the
<code class="literal">enabled</code> setting (which defaults to <code class="literal">true</code>) per exporter. For example:</p>
<div class="pre_wrapper lang-yaml">
<pre class="programlisting prettyprint lang-yaml">xpack.monitoring.exporters.my_http_exporter:
  type: http
  host: ["10.1.2.3:9200", "10.1.2.4:9200"]
  enabled: false <a id="CO444-1"></a><i class="conum" data-value="1"></i></pre>
</div>
<div class="calloutlist">
<table border="0" summary="Callout list">
<tr>
<td align="left" valign="top" width="5%">
<p><a href="#CO444-1"><i class="conum" data-value="1"></i></a></p>
</td>
<td align="left" valign="top">
<p>Disable the named exporter. If the same name as an existing exporter is not
used, then this will create a completely new exporter that is completely
ignored. This value can be set dynamically by using cluster settings.</p>
</td>
</tr>
</table>
</div>
<div class="note admon">
<div class="icon"></div>
<div class="admon_content">
<p>Defining a disabled exporter prevents the default exporter from being
      created.</p>
</div>
</div>
<p>To re-start data collection, re-enable these settings.</p>
</div>
<div class="navfooter">
<span class="prev">
<a href="http-exporter.html">« HTTP exporters</a>
</span>
<span class="next">
<a href="monitoring-troubleshooting.html">Troubleshooting monitoring »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>